<?php

function includeControllerFiles()
{
  include_once("ReleasedActionFinder.php");
  include_once("controller/ControllerUtil.php");
  include_once("controller/Config.php");
}

function getSelectedLang()
{
  session_start();
  if ($_SESSION['lang'] != '') {
    return $_SESSION['lang'];
  } else {
    return "lang.eng";
  }
}

function getMessageByKey($key)
{
  $lang = getSelectedLang();
  return \controller\ControllerUtil::getMessageByKey($key, $lang);
}

function getMessageByKeyWithParam($key, $param) {
  $lang = getSelectedLang();
  return \controller\ControllerUtil::getMessageByKeyWithParameter($key, $lang, $param);
}